package printer;

/**
 * @Author admin
 * @Date 2019/3/15 11:25
 */
public class Test {
    public static void main(String[] args) {
        boolean flag=false;
        if (flag){
            HPPrinter hp = new HPPrinter();
            hp.open();
            hp.print();
            hp.close();
        }else{
            CanonPrinter canon=new CanonPrinter();
            canon.open();
            canon.print();
            canon.close();
        }

    }
}
